@-webkit-keyframes zxEditorBottomIn {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  to {
    transform: translateY(-100%);
    opacity: 1;
  }
}
@keyframes zxEditorBottomIn {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  to {
    transform: translateY(-100%);
    opacity: 1;
  }
}
@-webkit-keyframes zxEditorBottomOut {
  from {
    transform: translateY(-100%);
    opacity: 1;
  }
  to {
    transform: translateY(0);
    opacity: 0;
  }
}
@keyframes zxEditorBottomOut {
  from {
    transform: translateY(-100%);
    opacity: 1;
  }
  to {
    transform: translateY(0);
    opacity: 0;
  }
}
/**
 * ******************************************
 * config
 * ******************************************
 */
/**
 * ******************************************
 * function
 * ******************************************
 */
/**
 * ******************************************
 * main style
 * ******************************************
 */
.zx-editor {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}
.zx-editor * {
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.zx-editor .border-bottom:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  content: '';
  transform: scaleY(0.5);
  border-bottom: 1px solid #ddd;
}
.zx-editor .zx-editor-content-wrapper {
  position: relative;
  width: 100%;
  overflow-y: scroll;
  outline: none;
  line-height: 1.5;
}
.zx-editor .zx-editor-content-wrapper.is-empty:before {
  position: absolute;
  padding: 0;
  content: '在此输入内容...';
  color: #ccc;
}
.zx-editor .zx-editor-content-wrapper > * {
  margin-bottom: 10px;
  text-align: justify;
}
.zx-editor .zx-editor-content-wrapper img,
.zx-editor .zx-editor-content-wrapper video,
.zx-editor .zx-editor-content-wrapper audio {
  max-width: 100%;
  height: auto;
}
.zx-editor .zx-editor-content-wrapper h2 {
  font-size: 1.2em;
  font-weight: 800;
}
.zx-editor .zx-editor-content-wrapper h4 {
  font-weight: 800;
}
.zx-editor .zx-editor-content-wrapper blockquote {
  display: inline-block;
  padding-left: 1em;
  border-left: 3px solid #ddd;
}
.zx-editor .zx-editor-content-wrapper ul {
  padding-left: 20px;
  list-style: disc;
}
.zx-editor .zx-editor-content-wrapper li,
.zx-editor .zx-editor-content-wrapper p {
  color: inherit;
}
.zx-editor .zx-editor-content-wrapper hr {
  margin: 0 20%;
  border: 0;
  border-top: 1px dashed #ddd;
}
/**
 * ******************************************
 * toolbar
 * ******************************************
 */
.zx-editor .zx-editor-toolbar-wrapper {
  position: fixed;
  z-index: 999;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #FAFCFF;
  height: 250px;
  transform: translateY(0);
  opacity: 0;
}
.zx-editor .zx-editor-toolbar-wrapper .inner-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  overflow-y: hidden;
  overflow-x: auto;
  white-space: nowrap;
}
.zx-editor .zx-editor-toolbar-wrapper .inner-wrapper .icon-item {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  cursor: pointer;
}
.zx-editor .zx-editor-toolbar-wrapper .inner-wrapper .toolbar-icon-pic {
  background: url('') no-repeat center center;
}
@media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  .zx-editor .zx-editor-toolbar-wrapper .inner-wrapper .toolbar-icon-pic {
    background: url('') no-repeat center center;
  }
}
.zx-editor .zx-editor-toolbar-wrapper .inner-wrapper .toolbar-icon-pic {
  background-size: 25px 25px;
}
.zx-editor .zx-editor-toolbar-wrapper .inner-wrapper .text-style-btn {
  background: url('') no-repeat center center;
}
@media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  .zx-editor .zx-editor-toolbar-wrapper .inner-wrapper .text-style-btn {
    background: url('') no-repeat center center;
  }
}
.zx-editor .zx-editor-toolbar-wrapper .inner-wrapper .text-style-btn {
  background-size: 25px 25px;
}
.zx-editor .zx-editor-toolbar-wrapper.in {
  -webkit-animation: 0.3s zxEditorBottomIn forwards;
          animation: 0.3s zxEditorBottomIn forwards;
}
.zx-editor .zx-editor-toolbar-wrapper.out {
  -webkit-animation: 0.3s zxEditorBottomOut forwards;
          animation: 0.3s zxEditorBottomOut forwards;
}
/**
 * ******************************************
 * Expansion panel
 * ******************************************
 */
.zx-editor .zx-editor-expansion-panel {
  position: fixed;
  z-index: 9999;
  left: 0;
  width: 100%;
  background-color: #fff;
  height: 260px;
  transform: translateY(0);
  opacity: 0;
  overflow: hidden;
  /**
   * *******************************************
   * text-style
   * *******************************************
   */
}
.zx-editor .zx-editor-expansion-panel .head-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.05);
}
.zx-editor .zx-editor-expansion-panel .head-wrapper .l {
  position: absolute;
  top: 0;
  padding: 0 10px;
  height: 100%;
  font-size: 0.8em;
  color: #999;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper .switch {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper .switch:after {
  display: inline-block;
  content: '';
  border-top: 7px solid #999;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper.center {
  text-align: center;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper.center .l {
  left: 0;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper.center .switch {
  right: 0;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper.left {
  text-align: left;
  padding-left: 10px;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper.left .l {
  right: 44px;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper.left .switch {
  right: 0;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper.right {
  text-align: right;
  padding-right: 10px;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper.right .l {
  left: 44px;
  padding: 0;
}
.zx-editor .zx-editor-expansion-panel .head-wrapper.right .switch {
  left: 0;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  height: 216px;
  overflow-x: hidden;
  overflow-y: auto;
}
.zx-editor .zx-editor-expansion-panel.in {
  -webkit-animation: 0.3s zxEditorBottomIn forwards;
          animation: 0.3s zxEditorBottomIn forwards;
}
.zx-editor .zx-editor-expansion-panel.out {
  -webkit-animation: 0.3s zxEditorBottomOut forwards;
          animation: 0.3s zxEditorBottomOut forwards;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__style-wrapper {
  position: relative;
  display: flex;
  height: 50px;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__style-wrapper dd {
  position: relative;
  flex: 1;
  line-height: 50px;
  text-align: center;
  font-size: 1.5em;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__style-wrapper dd:after {
  position: absolute;
  top: 0;
  right: 0;
  height: 50px;
  content: '';
  transform: scaleX(0.5);
  border-right: 1px solid #ddd;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__style-wrapper dd:last-child:after {
  border-right-width: 0;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__style-wrapper dd.text-align--l:before,
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__style-wrapper dd.text-align--c:before,
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__style-wrapper dd.text-align--r:before {
  display: inline-block;
  content: '=';
  line-height: 15px;
  width: 20px;
  height: 19px;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
  box-sizing: border-box;
  overflow: hidden;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__style-wrapper dd.text-align--l:before {
  text-indent: -10px;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__style-wrapper dd.text-align--r:before {
  text-indent: 8px;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__color-wrapper {
  display: flex;
  position: relative;
  height: 50px;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__color-wrapper dd {
  flex: 1;
  position: relative;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__color-wrapper dd i {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__color-wrapper dd i:before,
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__color-wrapper dd i:after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__color-wrapper dd i:before {
  top: -1px;
  left: -1px;
  border: 4px solid #fff;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__color-wrapper dd i:after {
  top: 1px;
  left: 1px;
  border: 2px solid #fff;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__color-wrapper dd.active i:before {
  display: none;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper {
  border-top: 5px solid #ddd;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper dd {
  position: relative;
  margin: 0 20px;
  height: 50px;
  line-height: 50px;
  text-align: center;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper dd:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  content: '';
  border-top: 1px solid #ddd;
  transform: scaleY(0.5);
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper dd:last-child:after {
  border-top: 0;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper dd.__h2 {
  font-size: 1.2em;
  font-weight: 800 !important;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper dd.__h4 {
  font-weight: 800 !important;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper dd.__blockquote:before {
  display: inline-block;
  vertical-align: top;
  margin: 8px 4px 0 0;
  font-size: 2em;
  content: '"';
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper dd.__ul:before {
  display: inline-block;
  vertical-align: top;
  margin-right: 4px;
  font-size: 1.5em;
  content: '·';
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper dd i {
  display: none;
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 30px;
  width: 14px;
  height: 8px;
  transform: rotate(-45deg);
  border-left: 2px solid #00c1b7;
  border-bottom: 2px solid #00c1b7;
}
.zx-editor .zx-editor-expansion-panel .body-wrapper .text-style-outer-wrapper .__tag-wrapper dd.active i {
  display: inline-block;
}
